<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.min.js"></script>
    <script>
        $(document).ready(function(){
            $("button").click(function(){
                $.post("/commitCommand",{
                        command:$("#command").val(),
                        statue:$("#statue").val(),
                        data:$("#data").val()
                    },
                    function(data,status){
                        //alert("数据: \n" + data + "\n状态: " + status);
                        $("#codeStatu").text("数据: \n" + data + "\n状态: " + status);
                    });
            });
        });
    </script>
</head>
<body>
<h1>发送指令</h1>
<div>

    Command Num:<br> <input type="text" id="command"><br>
    Status:<br> <input type="text" id="statue" value="1"><br>
    Data :<br> <textarea type="text" id="data" style="width:240px; height:300px; "></textarea><br>
    <button type="button">点我!</button>

</div>

<div><h2 id="codeStatu"></h2> </div>
</body>
</html>